<%@page import="model.User"%>
<%@page import="model.Wish"%>
<%@page import="model.Comment"%>
<%@page import="model.DemandeAmi" %>
<%@page import="java.util.Calendar"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="ISO-8859-1"%>
<% User user = (User) request.getSession().getAttribute("user"); %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="author" content="">
    
    <title>WishBook</title>

    <link rel="stylesheet" type="text/css" media="screen" href="design/css/coolblue.css" />
</head>

<body id="top">

<!--header -->
<div id="header-wrap"><header>

 	<hgroup> 
        <h1><a href="Controleur">WishBook</a></h1>
        <h3>Lister vos envies !</h3>
   </hgroup> 

    <nav>
		<ul>
				<li id="current"><a href="Controleur?action=accueil">Accueil</a><span></span></li>
			<% if( user == null ){ %>
				<li><a href="Controleur?action=inscription">Inscription</a><span></span></li>
				<li><a href="Controleur?action=connexion">Connexion</a><span></span></li>
			<% }else{%>
				<% List<String> lnotif = (List<String>) request.getSession().getAttribute("listNotification"); %>
				<li><a href="Controleur?action=notification">Notifications (<%=user.getNotification().size() %>)</a><span></span></li>
				<li><a href="Controleur?action=amis">Amis</a><span></span></li>
				<li><a href="Controleur?action=demande">Demandes (<%=user.getDemandes().size() %>)</a><span></span></li>
				<li><a href="Controleur?action=profil"><%= user.getPrenom() %> <%= user.getNom() %></a><span></span></li>
				<li><a href="Controleur?action=deconnexion">Deconnexion</a><span></span></li>
			<% } %>
		</ul>
	</nav>

   <form id="quick-search" method="post" action="Controleur?action=search">
      <fieldset class="search">
         <label for="qsearch">Search:</label>
         <input class="tbox" id="qsearch" type="text" name="qsearch" placeholder="Recherche..." title="Entrer votre recherche" />
         <button class="btn" title="Submit Search">Search</button>
      </fieldset>
   </form>

<!--/header-->
</header></div>
